package com.example.leetcode.dp;

import com.example.leetcode.dp.common.DPUtils;

class Solution740 {
    public int deleteAndEarn(int[] nums) {
        return DPUtils.deleteAndEarn(nums);
    }
}

public class leetcode740 {
    public static void main(String[] args) {
        Solution740 solution740 = new Solution740();
        int[] nums = {3, 4, 2};
        int[] nums1 = {2, 2, 3, 3, 3, 4};
        System.out.println(solution740.deleteAndEarn(nums));
        System.out.println(solution740.deleteAndEarn(nums1));
    }
}
